July 2026 samba security fixes for v4.22
authorBjörn Jacke <bjacke@samba.org>
Wed, 15 Jul 2026 18:42:00 +0000 (18:42 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 24 Jul 2026 13:14:13 +0000 (16:14 +0300)
commitc8c993fb601eadfc7d2203f9fce057b2cd916cf0
tree88bf06c170beb9dce70fa752f12ddeaf2281ef7a
parent0f7265939dcf08e16a5ade890f20a86f7d94671d
July 2026 samba security fixes for v4.22

Origin: upstream, https://bugzilla.samba.org/show_bug.cgi?id=16039
Forwarded: not-needed

From ea7530366da502e0a116467e4565304603eba5b1 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze@samba.org>
Date: Fri, 29 May 2026 12:43:13 +0200
Subject: [PATCH 01/23] CVE-2026-6949: ndr_dns: let ndr_pull_dns_res_rec()
 remember the start offset

In order to verify TSIG signatures we need a reliable way to
truncate the original dns_name_packet buffer before the
last additional dns_res_rec.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=16083

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Douglas Bagnall <dbagnall@samba.org>
Gbp-Pq: Name 2026-jul-sec-update-bug-16039-v4-22-combined.patch
24 files changed:
ctdb/common/ctdb_io.c
ctdb/common/pkt_read.c
ctdb/common/sock_daemon.c
ctdb/doc/ctdb.7.xml
ctdb/protocol/protocol_basic.c
ctdb/protocol/protocol_types.c
ctdb/server/ctdb_call.c
ctdb/server/ctdb_client.c
ctdb/server/ctdb_control.c
ctdb/server/ctdb_ltdb_server.c
ctdb/server/ctdb_persistent.c
ctdb/server/ctdb_recover.c
ctdb/server/ctdb_traverse.c
ctdb/server/ctdb_update_record.c
librpc/idl/dns.idl
librpc/ndr/ndr_dns.c
source4/dns_server/dns_crypto.c
source4/dns_server/dns_query.c
source4/dsdb/samdb/ldb_modules/audit_util.c
source4/dsdb/samdb/ldb_modules/rootdse.c
source4/dsdb/samdb/ldb_modules/wscript_build_server
source4/kdc/kpasswd-service.c
source4/ldap_server/ldap_backend.c
source4/librpc/tests/dns-decode_dns_name_packet-hex.txt